"use strict";

module.exports = {
    development: {
        gateSer: {
            appenders: [
                {
                    type: 'console',
                    category: 'console'
                }, {
                    type: 'console',
                    category: 'logger',
                    layout: {
                        type: 'pattern',
                        pattern: '%m',
                    }
                }
            ],
            replaceConsole: true,
            levels: {
                console: 'all' //trace, debug, info, warn, error, fatal
            }
        },
        nodeSer: {
            appenders: [
                {
                    type: 'console',
                    category: 'console',
                }
            ],
            replaceConsole: true,
            levels: {
                console: 'all' //trace, debug, info, warn, error, fatal
            }
        }
    },
    production: {
        gateSer: {
            appenders: [
                {
                    type: 'file',
                    filename: 'D:/code/words/logs/gateServer.log',
                    maxLogSize: 65536,
                    backups: 1,
                    category: 'console'
                },
                {
                    type: 'file',
                    filename: 'D:/code/words/logs/nodeServer.log',
                    maxLogSize: 65536,
                    backups: 2,
                    category: 'logger',
                }
            ],
            replaceConsole: true,
            levels: {
                console: 'all' //trace, debug, info, warn, error, fatal
            }
        },
        nodeSer: {
            appenders: [
                {
                    type: 'console',
                    category: 'console',
                }
            ],
            replaceConsole: true,
            levels: {
                console: 'all' //trace, debug, info, warn, error, fatal
            }
        }
    }
};
